package com.roncoo.education.db.dao;

import com.roncoo.education.db.entity.NewsCategory;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface NewsCategoryDao {

    Integer insert(NewsCategory news);

    List<NewsCategory> findByBean(NewsCategory news);

    NewsCategory findById(Integer id);

    Integer findByBeanCount(NewsCategory news);

    void deleteById(NewsCategory news);

    void deleteByBean(NewsCategory news);

    void updateById(NewsCategory news);

}
